package com.scs.application.modules.base.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.entity.DataEntity;
import com.scs.application.modules.upgrade.db.annotation.EntityClassAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityFieldAnnotation;
import com.scs.application.modules.upgrade.db.enums.EntityFieldType;
import lombok.Data;
import lombok.experimental.Accessors;
/**
 * <p>
 *
 * </p>
 */
@Data
@Accessors(chain = true)
@EntityClassAnnotation(remark = "供应商表")
@TableName("base_supplier")
public class Supplier extends DataEntity {


    // id ,在父类中处理

    @EntityFieldAnnotation(
            text = "配送商id",
            type = EntityFieldType.LONG,
            length = "",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String distributorId;

    @EntityFieldAnnotation(
            text = "供应商名称",
            length = "150",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String name;

    @EntityFieldAnnotation(
            text = "助记码",
            length = "50",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String namePy;

    @EntityFieldAnnotation(
            text = "MSCM系统标识",
            length = "50",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String mscmCode;

    @EntityFieldAnnotation(
            text = "HRP系统标识",
            length = "50",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String hrpCode;

    //扩展维护阳采关系
    @EntityFieldAnnotation(
            text = "阳采配送方名称",
            length = "50",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String sunCompanyNamePs;

    @EntityFieldAnnotation(
            text = "阳采配送方ID",
            length = "50",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String sunCompanyIdPs;

    @EntityFieldAnnotation(
            text = "联系电话",
            length = "50",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String telephone;

    @EntityFieldAnnotation(
            text = "联系人",
            length = "50",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String contacts;


    @EntityFieldAnnotation(
            text = "联系地址",
            length = "50",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String address;

    @EntityFieldAnnotation(
            text = "统一社会信用代码",
            length = "50",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String companyCode;
    // 是否禁用
    private Boolean flagDisabled;

    // 备注
    private String remark;

    // 耗材数量
    @TableField(exist = false)
    private Double matrNum;


    // true 禁用供应商名称修改
    @TableField(exist = false)
    private Boolean flagDisabledSpEdit;

}
